import Opt from '@/components/dt/info/Opt.js'
import houseOpt from '@/biz/option/house.js'

class Column extends Opt {
  constructor(buildingId) {
    super()
    this.buildingId = buildingId
    this.build()
  }

  build() {
    this.createAll()
    this.opts.push(...this.all)
  }

  createAll() {
    this.all = [
      {
        type: 'index',
        title: '序号',
        minWidth: 50
      },
      {
        field: 'orgName',
        title: '所属组织',
        minWidth: 160
      },
      {
        field: 'housesName',
        title: '案场名称',
        minWidth: 180
      },
      {
        field: 'bonusMonth',
        title: '奖金单月份',
        minWidth: 150
      },
      {
        field: 'workNo',
        title: '工号',
        minWidth: 150
      },
      {
        field: 'name',
        title: '姓名',
        minWidth: 120
      },
      {
        field: 'percent30',
        title: '30%（元）',
        minWidth: 120,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'percent40',
        title: '40%（元）',
        minWidth: 120,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'percent45',
        title: '45%（元）',
        minWidth: 120,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'percent50',
        title: '50%（元）',
        minWidth: 120,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'percent60',
        title: '60%（元）',
        minWidth: 120,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'percent70',
        title: '70%（元）',
        minWidth: 120,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'percent80',
        title: '80%（元）',
        minWidth: 120,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'percent90',
        title: '90%（元）',
        minWidth: 120,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'percent100',
        title: '100%（元）',
        minWidth: 120,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'othersPercent',
        title: '其他比例（元）',
        minWidth: 120,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'handerAmount',
        title: '交房奖金（元）',
        minWidth: 120,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'bonusPool',
        title: '计提奖金池（元）',
        minWidth: 150,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'tongExcitation',
        title: '同策激励（元）',
        minWidth: 150,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'deceloperExcitation',
        title: '开发商激励（元）',
        minWidth: 150,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'deceloperExcitationNot',
        title: '开发商激励未全额（元）',
        minWidth: 180,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'projectAllowance',
        title: '项目津贴（元）',
        minWidth: 120,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'expatriateAllowance',
        title: '外派津贴（元）',
        minWidth: 120,
        cell: {
          text: {
            type: 'number'
          }
        }
      },
      {
        field: 'statusStr',
        title: '推送状态',
        minWidth: 150,
        header: {
          filter: {
            title: '推送状态',
            key: 'pushStatus',
            placeholder: '请选择',
            select: {
              options: [
                { key: 'SUCCESS', value: '成功' },
                { key: 'FAIL', value: '失败' }
              ]
            }
          }
        }
      },

      {
        field: 'createTimeStr',
        title: '推送日期',
        minWidth: 150
      }
    ]
  }
}

export default Column
